@extends('layouts.adminLayouts')

@section('mainContent')

    <div class="box">
        <div class="box-header">
            <div class="box-title">
                编辑角色信息
            </div>
            <div class="box-tools">
                <div class="btn-group-sm">
                    <a class="btn btn-default" href="javascript:history.back();">
                        <i class="fa fa-mail-reply"></i>
                    </a>
                </div>
            </div>
        </div>
        <form class="form-horizontal" action="" method="post">
            <div class="box-body">
                <div class="form-group">
                    <label class="control-label col-md-2">角色名称</label>
                    <div class="col-md-6">
                        <div class="input-group">
                            <span class="input-group-addon">
                                <i class="fa fa-user"></i></span>
                            <input type="text" name="data[name]" class="form-control title" placeholder="输入 角色名称"
                                   value="{{$info->name}}">
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="text-danger">
                            <label class="control-label text-left"> {{$errors->first('name')}}</label>
                        </div>
                    </div>
                </div>


                <div class="form-group">
                    <label class="control-label col-md-2">规则</label>
                    <div class="col-md-6">
                        <input type="text" name="data[slug]" class="form-control title"
                               placeholder="输入 规则" value="{{$info->slug}}" disabled>
                    </div>
                    <div class="col-md-4">
                        <div class="text-danger">
                            <label class="control-label text-left"> {{$errors->first('slug')}}</label>
                        </div>
                    </div>
                </div>

            </div>
            <div class="box-footer">
                <div class="col-md-2"></div>
                <div class="col-md-6">
                    {{csrf_field()}}
                    <div class="btn-group pull-left">
                        <button class="btn btn-success">提交</button>
                    </div>
                    <div class="btn-group pull-right">
                        <button type="reset" class="btn btn-danger">撤销</button>
                    </div>
                </div>
            </div>
        </form>
    </div>

@endsection